package com.cool.reggie.modules.orders.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cool.reggie.modules.orders.dto.OrderDto;
import com.cool.reggie.modules.orders.entity.OrdersEntity;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 订单表 服务类
 * </p>
 *
 * @author 1950735817@qq.com
 * @since 2022-07-20
 */
public interface OrdersService extends IService<OrdersEntity> {

    /**
     * 提交订单
     *
     * @param ordersEntity 订单实体
     */
    void submitOrder(OrdersEntity ordersEntity);

    /**
     * 查询列表
     *
     * @param objectPage 对象页面
     * @return {@link Page}<{@link OrdersEntity}>
     */
    Page<OrderDto> queryList(Page<OrdersEntity> objectPage);
}
